/*
 * @(#)LocaleChangeListener.java	11/05/31
 * Copyleft 2011. All rights reversed.
 *
 * This file is part of AverageGrade.
 *
 * AverageGrade is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * AverageGrade is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with AverageGrade. If not, see <http://www.gnu.org/licenses/>.
 */

package net.grade.averagegrade.event;

import java.util.Locale;

/**
 * A listener interface for being able to listen for changes
 * in locale. When the locale gets changed, <code>onLocaleChanged</code>
 * is called with the new <code>Locale</code>.
 */
public interface LocaleChangeListener {

    /**
     * Gets called when the locale changes. The currently set locale
     * is passed along as a parameter to the method.
     *
     * @param locale The currently set locale.
     */
    public void onLocaleChanged(Locale locale);
}